package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预约对象 book
 * 
 * @author WuZhongfu
 * @date 2022-02-17
 */
public class Book extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约表id */
    private Long id;

    private Long timeSliceId;

    private Integer freeTimeId;

    /** 孩子姓名 */
    @Excel(name = "孩子姓名")
    private String childName;

    /** 预约者月龄 */
    @Excel(name = "预约者月龄")
    private Integer monthAge;

    /** 预约者邮箱 */
    @Excel(name = "预约者邮箱")
    private String email;

    /** 预约者手机号码 */
    @Excel(name = "预约者手机号码")
    private String phone;

    /** 被预约者id */
    @Excel(name = "被预约者id")
    private Long userId;

    /** 被预约者姓名 */
    @Excel(name = "被预约者姓名")
    private String userNickname;

    /** 预约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date bookDate;

    /** 预约开始时间 */
    @Excel(name = "预约开始时间")
    private String startTime;

    /** 预约结束时间 */
    @Excel(name = "预约结束时间")
    private String endTime;

    /** 预约状态(0:已预约，1:已完成，2:爽约) */
    @Excel(name = "预约状态(0:已预约，1:已完成，2:爽约)")
    private Integer status;

    /** 提前提醒定时器id */
    private Long jobId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Long getTimeSliceId() {
        return timeSliceId;
    }

    public void setTimeSliceId(Long timeSliceId) {
        this.timeSliceId = timeSliceId;
    }

    public Integer getFreeTimeId() {
        return freeTimeId;
    }

    public void setFreeTimeId(Integer freeTimeId) {
        this.freeTimeId = freeTimeId;
    }

    public void setChildName(String childName)
    {
        this.childName = childName;
    }

    public String getChildName()
    {
        return childName;
    }
    public void setMonthAge(Integer monthAge)
    {
        this.monthAge = monthAge;
    }

    public Integer getMonthAge()
    {
        return monthAge;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserNickname(String userNickname) 
    {
        this.userNickname = userNickname;
    }

    public String getUserNickname() 
    {
        return userNickname;
    }
    public void setBookDate(Date bookDate) 
    {
        this.bookDate = bookDate;
    }

    public Date getBookDate() 
    {
        return bookDate;
    }
    public void setStartTime(String startTime) 
    {
        this.startTime = startTime;
    }

    public String getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(String endTime) 
    {
        this.endTime = endTime;
    }

    public String getEndTime() 
    {
        return endTime;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }

    public Long getJobId() {
        return jobId;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", timeSliceId=" + timeSliceId +
                ", freeTimeId=" + freeTimeId +
                ", childName='" + childName + '\'' +
                ", monthAge=" + monthAge +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", userId=" + userId +
                ", userNickname='" + userNickname + '\'' +
                ", bookDate=" + bookDate +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", status=" + status +
                ", jobId=" + jobId +
                '}';
    }
}
